(function (vc) {
    vc.extends({
        propTypes: {
            emitChooseProductSpec: vc.propTypes.string,
            emitLoadData: vc.propTypes.string
        },
        data: {
            chooseProductSpecValueInfo: {
                productSpecValues: [],
            }
        },
        _initMethod: function () {
        },
        _initEvent: function () {
            vc.on('chooseProductSpecValue', 'openChooseProductSpecValueModel', function (_param) {
                $that.chooseProductSpecValueInfo.productSpecValues = _param;
                $('#chooseProductSpecValueModel').modal('show');
            });
        },
        methods: {
            chooseProductSpecValue: function (_productSpec) {
                vc.emit($props.emitChooseProductSpec, 'choose', _productSpec);
                $('#chooseProductSpecValueModel').modal('hide');
            }
        }

    });
})(window.vc);
